pkgname=mailcrypt
pkgver=3.5.8
pkgrel=1
pkgdesc="Emacs interface to PGP and GnuPG"
arch=(any)
url="http://mailcrypt.sourceforge.net/"
license=('GPL')
depends=(emacs)
makedepends=()
options=()
source=(http://downloads.sourceforge.net/sourceforge/mailcrypt/mailcrypt-$pkgver.tar.gz)
md5sums=('411b53d4ce9f92102d994eb7a8f661ba')

build() {
  cd "$srcdir/$pkgname-$pkgver"

  [ $NOEXTRACT -eq 1 ] || ./configure --prefix=/usr

  make || return 1

  mkdir -p $pkgdir/usr/bin $pkgdir/usr/info
  make prefix="$pkgdir/usr/" install || return 1

  mv $pkgdir/usr/info $pkgdir/usr/share/ && \
  rm -f $pkgdir/usr/share/info/dir
}
